package com.cjx.admin.dao;
import com.cjx.admin.dto.AdminRoleDTO;
import com.cjx.admin.dto.AdminRoleResourceDTO;
import com.cjx.admin.entity.AdminRoleResourceEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.mapstruct.Mapper;

import java.util.List;

/**
 *  DAO 接口
 *
 * @author : cjunxian
 * @since 2021-03-11
 * @version 1.0
 */
@Mapper
public interface AdminRoleResourceMapper extends BaseMapper<AdminRoleResourceEntity> {

  /**
   * 获取全部资源路径与角色的关系
   * @return
   */
  List<AdminRoleResourceDTO> getAllRoleResource();
}

